<template>
  <div>登录成功,跳转中</div>
</template>

<script>
export default {
  data() {
    return {

    }
  },
  watch: {

  },
  mounted() {
  },
  created() {
    const accessToken = this.$route.query.accessToken

    const loginSuccessRedirect = localStorage.getItem('loginSuccessRedirect')
    this.$store.dispatch('user/loginSuccess', accessToken)
    this.$router.push({ path: loginSuccessRedirect || '/' })
  },
  methods: {
  }
}
</script>

<style scoped lang="scss">
  iframe {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 100%;
    width: 100%;
  }
</style>
